package com.github.m6d21.sso.dao.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.m6d21.sso.model.user.entity.User;
import com.github.m6d21.sso.model.user.qo.UserQO;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *<p>
 *UserMapper
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:11:00
 * @since 1.0.0
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User get(@Param("id") Integer id);

    List<User> selectUsernamePassword(@Param("username") String username, @Param("password") String password);

    int insertUser(User user);

    int insertSelectiveUser(User user);

    List<User> query(UserQO userQO);

    int updateUserById(User user);

    int updateSelectiveUserById(User user);
}
